package coms.action;

import java.util.Map;

import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
//import coms.ejb.sessionbean.COMSManagerBeanRemote;
import coms.ejb.sessionbean.*;
import coms.datatransfer.UserDTO;

public class LogoutAction extends ActionSupport {
	
	//private String username;
	//private String password;
	
    /*public String getUsername(){
    	return this.username;
    }
    
    public String getPassword(){
    	return this.password;
    }*/
    
    
    
	public String execute() throws Exception {
		 
			 
			  Map session = ActionContext.getContext().getSession();
			  	session.remove("userID"); 
			  	session.remove("firstname");
			  
			  return "SUCCESS";
			 
	
	}
		
		
	}
	
	
	
	
	

